from openai import OpenAI

client = OpenAI(
    api_key="sk-e39b058a837f49bc80f521305d34ce44",
    base_url="https://api.deepseek.com"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[
        {"role": "system", "content": "你是一个专业的AI助手"},
        {"role": "user", "content": "请解释一下Transformer结构的核心机制"}
    ],
    stream=False
)